test for user registration