Adding login scripts and pages