Added promise to setUser and added more alerts,