Tests for account activation and login

You can make the regex Pattern object as the filed instead of the string. The pattern will only need to be compiled once and reuse.