Require login to use create/edit, refactor tests