added validateion