validation included for login