Added validation to beans