To add logon with google account, you can follow a posst. It has live demo and with complete code.

http://learnandsharetoall.blogspot.com/2014/01/login-with-google-oauth20with-complete.html
...