Avoid displaying "None" in register form and after successful registration, redirects to the login page.