Added custom user and password validation