add migration files and login function works