stop flash of homepage appearing when logging in - fixes #314
fixes #315 - don't use default createdDate in schema, as null createdDates will have the current date