changes to error message and log in styling