Revert "Changed Code for login using doctrine"

This reverts commit c7b6c55a16276a945617a1401c4ec30840164061.