The encryption and decryption functions currently run even when the message input is empty, resulting in blank outputs. Adding a simple validation to prevent this and alert the user to "Enter a message before proceeding" would improve UX and avoid unnecessary function calls.