Fix for FB login and email registration