make email as the primary key for users. Now only for testing
fix: using email to login in event test
Merge branch 'email_as_primary_key'