Debugged log-in so that it now works.