Cleaned up login to allow testing with GET.