fix authenticate backend and add facebook login