Fixed the code with new Bootstrap 3 security user service and minor doctrine fixes.