Added check if uid is in $_POST while editing user.