login validation fixed error