$user isn't defined when calling the registration form for the first time