Fix browserid successful login after failure. Fix template bug.