sets up app.user state for editing user details