Reformatted LoginController