setup flatpages and made email required for login