In <User> model added function as custom attribute for trying to get other model attributes