fixed bug where code broke after facebook loggin in