authentication working for facebook and general users