Fixed small things.

Made the valid users only try to print if it wasn't empty.
Made the search of the days work correctly.
Reversed order of params in if statements for and logic.