Multisite - Central Login/Register page

Now that I have my multisite cookies sorted out, I want to redirect all of them registrations/logins to a specific url on my multisite network. I have been working with Brajesh on this also but it seems the code isn't working properly.

function buddydev_signup_page_redirect() {
	$redirect_to_url = ""; //please change
	$account_site_id = 2;//please change

	if ( bp_is_register_page() && ! get_current_blog_id() == $account_site_id ) {

		wp_redirect($redirect_to_url, 301);//permanent redirect
add_action( 'bp_template_redirect', 'buddydev_signup_page_redirect' );

Basically I want all login/register to happen on this account subdomain