Add test for valid/invalid login. Add param for gravatar helper.