Updated login function with messages

The login function needed messages and new verification to tell the user
if he/she missed to fill in a field.