Removed hibernate workings, switched to manual queries. Added login function. Added correct css for register and login.