Added flash messages for displaying login/signup errors.