made static createUser method that returns the created user and used it in the patientController