Removed some sql migrations. Fixed permission migration. Fixed user identity. Authentication works.