fixed login bug and error in sign_up_spec