Fixed bug with deleted users and edting pins