user can logout successfully and checking input fields