fixed the toggle switch for sign in