Check arguments.
check_args(from, category, sortby)
from argument
category argument
sortby argument
Stops main function.