* Added login validation
* Refactored fronted end validation