Handling different test cases for login

If the user doesn't enter a login or password, UI gives an alertmessage
and doesn't attempt to contact server.