added facebook login

also moved the code to make place for backend