// For redirect
qa_redirect('' , array('state' => ($login_error ? 'login-error' : 'login-succ')));
// then after rediret to show the error message .. For doing this create a layer file in the plugin folder and add the below lines in doctype() .
$state = qa_get_state();
if ($state == 'login-error')
$pageerror = "Login Unsuccessful . Please check your email address .. Blah blah ";
$qa_content['error'] = @$pageerror;