WordPress Login without a page refresh

Solution:

I would suggest you to simply use this plugin: http://wordpress.org/extend/plugins/simplemodal-login/

It will solve your problem and have two styles, you can check it out.