Fixed factory views to show validation errors. Added factory scope to client code validation