Auth window has been added 
Crap has been removed 
Separate hibernate method has been created