Added format validation, fixed css error