change style and add validation