updated login scripts for for page