fixed a bug related with facebook posts
added fix for login