fixed minor bug at #login after register