fix nil related error on edit account page