fixes sign up bug for invited and univited users