Fix for not signing in user automatically