Authentication. Also, added a function for generating error alerts.