added user factory and users controller