Fixed login after registration