code model user refactorized for fb connect