added error messages for users and one for workers