<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def form_valid(self, form):
 """Security check complete. Log the user in."""

        auth_login(self.request, form.get_user())
        return HttpResponseRedirect(self.get_success_url())