Implemented validation on Login view.