work in progress
some validation added using success failure approach