Another bugfix in login/registration

Changed order so that program does not try to check null users.