Retrieve role from the registration form