function mo2f_register_profile($email, $deviceKey, $mo2f_rba_status)
{
    if (isset($deviceKey) && $deviceKey == 'true') {
        if ($mo2f_rba_status['status'] == 'WAIT_FOR_INPUT' && $mo2f_rba_status['decision_flag']) {
            $rba_profile = new Miniorange_Rba_Attributes();
            $rba_response = json_decode($rba_profile->mo2f_register_rba_profile($email, $mo2f_rba_status['sessionUuid']), true);
            //register profile
            return true;
        } else {
            return false;
        }
    }
    return false;
}