fix bug for sign in