Fixed hibernate issue.
Fixed auth