Fixed bug with editing user and changed errors names in js