fixed login after registration