Added login scripts
corrected errors