Login controller updated to reduce the amount of code needed and
complexity. Additional code is required to check the user exists and if
not, create an account.