Clear rand text, CNAME, Move validation to js file