register method on user