Modify gravatar_for helper and fix password_digest can't be blank error message