valid user input, moved error style to shared.css