Validate and submit function for my fom aren't working
Add the following lines to your custom_form function:

$form['#validate'][] = 'custom_form_validate';
$form['#submit'][] = 'custom_form_submit';


Clear the cache afterwards and you will be good