added activity validation