Debugging the login module after shifting code from template.