Update Login.php - simplify gravatar integration

simplify gravatar integration to a simple function