Controller methods added and user model methods added