added hook for creating a new user instance while registration