Use reverse for the login related URL settings.