fix small bugs with user schema