add annotation configuration and modification of user class

Modification to use User, Doctrine and Annotation