corrected error in User model