Added code from the login form component to the registration page, so that a new user will be auto logged in.