Fixes logic in confirm and  appointment

Signed-off-by: Atanas Kerezov <kerezov.atanas@gmail.com>