generating user model
added method to user model