Added user registration functions