added method that makes check by get or post on request class