update login/signup error handling
add tests for login