Added some more stuff for processing logins. Moved all login things to the same function. Using django form instead of hand writing the form.