Adding validation to username/password field