minor cleanup
implement basic error messages of the api and make use of them in the login view