Implemented Security and authenctication
Changed hibernate config