Prettifies the validateUser method