Added logic to check for first-time logins.

refs #4684

Added logic to check for first-time logins before completing
login process, setting a session variable if it's the first time
someone has logged into the system.