button style change and error class color change