cleared debug statements and modified loginFile