added migrations for invites and control for login