Add users controller. Fix small bugs.