User registration form now linked to database