added patient email validation, added gravatar support for mugshots