work on login validation