Added auto login feature + mastery page functionality