set up EntityManager and connect to database
login and registration controllers