Bugfix in login/registration

Changed input validation so the program doesn't try to create or log in a user with blank fields.