Add validation of user credentials