Added error messages and send code button