valid/ invalid tests, refactored flash, added size to gravatar