Added a simple startup script
Mostly implemented login check