adds username and password validation and sanitation in User