Fixed sign in function//Added migration