Split out login-radius code into views and templates