moved error messages to be below and now above