adding token functions for consistency
Fixing bug where a non-existing facebook token throws an error
Refactoring /login route