Fixed some issues in FB login.