Added JPA relationships and login methods