You have a blank line of code where the error occurs. You can't have a blank line before a redirect. You just need to delete line 45 to remove the error.
Create the message you want displayed on your page and then highlight it and apply the Server Validations Show If server behavior. You can then specify to only show that message if the number validation check has failed.