added user login validation