Made login warning run only once.
Moved logic to an angular controller, and fixed logic.
Merge pull request #243 from Cal-CS-61A-Staff/login_warning_fix

Made login warning run only once.