implementation of login via doctrine