Passing a message into an input and alerting it