Move login and logout views to top of module