Added serializable implementation on User entity to fix bug dealing with 5.4 and Sf 2.1