fixed registratino where it creates the type of user at the same time