process_user_input function

User input processing