added handling for existing accounts.  fixed bug for modal when user not signed in