Refactor sign-in/edit user form rendering