Fix bug that occurred when signing up an existing user #1138211