Fixed login.c to fit with new file structure.