migrate db
Log in and sign in functions