Actually, just make this into a var so it can be used in both messageError() and alert(). Otherwise lgtm.