Initial code for login validation.