Added to login the user automatically after registration.