Added createFromPOST method to UserFactory