modified in the condition section for checking the user