fixed hibernate persistence problem, plus js loginPage