Fix the forgot password & unlock pages + basic tests.