hibernate with login problem