Add user gravatar and make alert boxes disappear automatically after a duration of 5 seconds