Code changes for date picker and log out.