Added error messages to moodle login.