Fix user registration library