-Fixed login validation

Todo: 
-Implement server authentication
-Implement register new user