Authentication module using Doctrine