moved user login, and auth for editing petitions