Added some utilities and fixed FB login bug