add login validation code