Implement register, login with JPA