Redirecting to Library after login/register