Changed invalid to redirect to moodle Login