Improved login code, enabled google login ssl