Fix functioning for textarea less than 50 chars, add submit message, optimise code