Added editmethod to user controller