Authentication module using Doctrine 2 ORM