fix to login_spec