Added username/password validation.