bug fix for sign in