Urlencode login urls
Test cleanup
Added tests for the login and registration forms