Added automatic user registration