Invoke a rule upon form validation
This works

/* Implementation of hook_form_alter*/

function login_auth_form_alter(&amp;$form, $form_state, $form_id) {


if ($form_id == 'user_login') {

        $form['#validate'][] = 'ea_login';
    }
}

/* implementation of hook_form_validate */
function ea_login($form, &amp;$form_state) {

        $response = "SUCCESS message";

      rules_invoke_component('rules_display_a_message',$response);

}