logging in is tested and works well and gets error messages from the server