make detection of first login work on GAE