redirect to signup page when error occured while registering new user
add getCurrentUser, getCurrentUserUid, getDatabase
use getDatabase, getCurrentUser, and getCurrentUserUid in User
registration route: use current user and database from controller