add edit user functionality and squash moar bugs