worked at setter and getter method for user model