added authentication and valiation logic
Merge pull request #2 from gngeorgiev/login-register-validation

added authentication and valiation logic