added validation of requests