fixed templates, made getUserData happen on login