Fixed the system launch authenticated issue.
1. Fix the login (user model).
2. Fix the login after pre-logoff.
6. Create a startup and shutdow method.
-  The shutdown need to do all tasks from the logoff method.
-  and the startup all tasks from the login method.