fixed bug with editing user