fix 500 server error

Due to some unknowing javascript, FB login and login is broken.
Need to be fixed.