Set LOGIN_URL correctly

Ensures that the login_required decorator works as expected.
Add a simple test of user profile page