Firebase block algorithm for sign up became too...complicated?

I think I overly complicated a simple sign-up process using Firebase... I was mainly using loops when the SignUp was pressed. Now when calling procedure:exist it doesn't function as expected it would or when the realtime database is empty. Can I have some expert advice to optimize my blocks better :smiling_face_with_tear: