Fix date filter when dates empty
Add logout and login validation